/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const communityRouter = {
  path: '/community',
  component: Layout,
  name: '社群管理',
  meta: {
    title: '社群管理',
    subtitle:'社群',
    icon: 'menu_community'
  },
  children: [
    {
      path: '/teamLeader/list',
      component: () => import('@/views/teamLeader/list'),
      name: 'teamLeader-list',
      meta: { title: '团长管理',subtitle:'团长', icon: 'menu_community', permissions: ['teamLeader.query'] }
    },
    {
      path: '/teamLeader/add',
      component: () => import('@/views/teamLeader/add'),
      name: 'teamLeader-add',
      meta: { title: '新增团长', icon: 'menu_community' },
      hidden: true
    },
    {
      path: '/teamLeader/edit',
      component: () => import('@/views/teamLeader/edit'),
      name: 'teamLeader-edit',
      meta: { title: '修改团长', icon: 'menu_community' },
      hidden: true
    },
    {
      path: '/communityStore/list',
      component: () => import('@/views/communityStore/list'),
      name: 'communityStore-list',
      meta: { title: '社区店管理',subtitle:'社区店', icon: 'menu_community', permissions: ['sysMch.query'] }
    },
    {
      path: '/communityStore/add',
      component: () => import('@/views/communityStore/add'),
      name: 'communityStore-add',
      meta: { title: '新增社区店', icon: 'menu_community' },
      hidden: true
    },
    {
      path: '/communityStore/edit',
      component: () => import('@/views/communityStore/edit'),
      name: 'communityStore-edit',
      meta: { title: '修改社区店', icon: 'menu_community' },
      hidden: true
    },
    {
      path: '/car/list',
      component: () => import('@/views/car/list'),
      name: 'car-list',
      meta: { title: '车辆管理',subtitle:'车辆', icon: 'menu_community', permissions: ['car.query'] }
    },
    {
      path: '/car/add',
      component: () => import('@/views/car/add'),
      name: 'car-add',
      meta: { title: '新增车辆', icon: 'menu_community' },
      hidden: true
    },
    {
      path: '/car/edit',
      component: () => import('@/views/car/edit'),
      name: 'car-edit',
      meta: { title: '修改车辆', icon: 'menu_community' },
      hidden: true
    },
    {
      path: '/shippingLine/list',
      component: () => import('@/views/shippingLine/list'),
      name: 'shippingLine-list',
      meta: { title: '送货线路',subtitle:'线路', icon: 'menu_community', permissions: ['shippingLine.query'] }
    },
    {
      path: '/shippingLine/add',
      component: () => import('@/views/shippingLine/add'),
      name: 'shippingLine-add',
      meta: { title: '新增送货线路', icon: 'menu_community' },
      hidden: true
    },
    {
      path: '/shippingLine/edit',
      component: () => import('@/views/shippingLine/edit'),
      name: 'shippingLine-edit',
      meta: { title: '修改送货线路', icon: 'menu_community' },
      hidden: true
    },
  ]
}
export default communityRouter
